home *** CD-ROM | disk | FTP | other *** search
- Hi Mark,
-
- There are a few little problems in the version of IMAP-2.3
- that I grabbed from cac.washington.edu today at around 14:40. First (in
- pseudo-diff format), there's an incorrect declaration that will cause
- Sun compilers to choke:
-
- ---news.c:line 516---
- -> int news_numsort (struct direct **d1,struct direct **d2)
- struct direct **d1;
- struct direct **d2;
- {
- return (atoi ((*d1)->d_name) - atoi ((*d2)->d_name));
- }
- ---------------------
- -> int news_numsort (d1,d2)
- struct direct **d1;
- struct direct **d2;
- {
- return (atoi ((*d1)->d_name) - atoi ((*d2)->d_name));
- }
- ---------------------
-
- Secondly, in nntpclient.c, I think you wanted a different
- function than you said, but I can only guess. At any rate, the
- Sun libraries don't have a strcpyn and it looks like you want
- strncpy.
-
- ---nntpclient.c:line 627---
- fs_resize ((void **) &LOCAL->buf,LOCAL->buflen += (MAXMESSAGESIZE + 1));
- /* copy the text */
- -> strcpyn (LOCAL->buf + bufpos,t,i);
- bufpos += i; /* set new buffer position */
- LOCAL->buf[bufpos++] = '\015';
- LOCAL->buf[bufpos++] = '\012';
- ---------------------------
- fs_resize ((void **) &LOCAL->buf,LOCAL->buflen += (MAXMESSAGESIZE + 1));
- /* copy the text */
- -> strncpy (LOCAL->buf + bufpos,t,i);
- bufpos += i; /* set new buffer position */
- LOCAL->buf[bufpos++] = '\015';
- LOCAL->buf[bufpos++] = '\012';
- ---------------------------
-
- And...
-
- ---nntpclient.c:line 1027---
- h[4] == ':' && h[5] == ' ') || (s1 = strstr (h,"\nPath: "))) &&
- (s = strchr (s1 += 6,'\n'))) {
- -> strcpyn (tmp+5,s1,i = s - s1);
- tmp[5 + i] = ' ';
- s = tmp + 6 + i; /* where to write date */
- ----------------------------
- h[4] == ':' && h[5] == ' ') || (s1 = strstr (h,"\nPath: "))) &&
- (s = strchr (s1 += 6,'\n'))) {
- -> strncpy (tmp+5,s1,i = s - s1);
- tmp[5 + i] = ' ';
- s = tmp + 6 + i; /* where to write date */
- ----------------------------
-
- Thanks for all the work you've done on IMAP and hopefully I'll
- get to meet you in the early part of March when I'm up visiting :-).
-
-
-
- Cory West,
- corywest@rice.edu
-
-
-
-